<template>
  <table class="my-table">
    <thead>
      <slot name="title"></slot>
    </thead>
    <tbody>
      <tr v-for="item in goods" :key="item.id">
        <slot name="content" :item="item"></slot>
      </tr>
    </tbody>
  </table>
</template>

<script>
export default {
  props: {
    goods: {
      type: Array,
      required: true,
      default: () => [],
    },
  },
}
</script>

<style scoped></style>
